package com.rc.evcharger.common.enums;

/**
 * 订单状态
 * Created by sven on 2018-06-04
 */
public enum HlhtOrderStatusEnum {
    //正向对接时,第三方运营商的订单状态,订单状态,0:用户请求启动 1:充电中(收到启动回调) 2:用户请求停止/其它原因停止 3:已停止(收到停止回调) 4:已结算(收到结算推送) 5:挂单(2分钟内未收到停止回调或结算推送) 6:无效订单
    HlhtOrderStatus0("0", "用户请求启动"),
    HlhtOrderStatus1("1", "充电中(收到启动回调)"),
    HlhtOrderStatus2("2", "用户请求停止/其它原因停止"),
    HlhtOrderStatus3("3", "已停止(收到停止回调)"),
    HlhtOrderStatus4("4", "已结算(收到结算推送)"),
    HlhtOrderStatus5("5", "挂单(2分钟内收到停止回调或结算推送)"),
    HlhtOrderStatus6("6", "无效订单");

    private final String code;
    private final String msg;

    HlhtOrderStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
